/** 
* Copyright (C) 2012-2019 ZEEI Inc.All Rights Reserved.
* 项目名称：oms-trunk
* 文件名称：Constatnt.java
* 包  名  称：com.zeei.oms.constant
* 文件描述：TODO 请修改文件描述
* 创建日期：2019年5月8日下午2:40:10
* 
* 修改历史
* 1.0 wu.chiwen 2019年5月8日下午2:40:10 创建文件
*
*/

package com.zeei.ems.base.constant;

import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @类型名称：Constatnt
 * @类型描述：运维相关的常量
 * @功能描述：运维相关的常量
 * @创建作者：wu.chiwen
 *
 */

public class Constatnt {

	public static final String PATH_CLASS_ROOT = Constatnt.class.getClassLoader().getResource("").getPath();
	/* 项目根路径 */
	public static final String ROOT_Path = PATH_CLASS_ROOT.substring(1,
			PATH_CLASS_ROOT.length() - "WEB-INF\\classes\\".length() - 4);

	/**
	 * 常见四个因子(高锰酸钾指数.总氮.氨氮.总磷)
	 */
	public static Map<String, Object> map = new HashMap<String, Object>();
	public static Map<String, Object> fourPlusOxygenMap = new HashMap<String, Object>();

	public static Map<String, Object> nineMap = new HashMap<String, Object>();

	static {
		map.put("w01019", "高锰酸盐指数");
		map.put("w21001", "总氮");
		map.put("w21003", "氨氮");
		map.put("w21011", "总磷");

		map.put("fiveParameters", "常规五参数");

		nineMap.putAll(map);
		nineMap.put("w01001", "pH值");
		nineMap.put("w01003", "浊度");
		nineMap.put("w01009", "溶解氧");
		nineMap.put("w01010", "水温");
		nineMap.put("w01014", "电导率");

		fourPlusOxygenMap.putAll(map);
		fourPlusOxygenMap.put("w01009", "溶解氧");
	};

	/** 质控合格 */
	public static final String QUALIFIED = "合格";

	/** 质控不合格 */
	public static final String UNQUALIFIED = "不合格";

	/**
	 * 水质达标
	 */
	public static final String STANDARD = "达标";

	/**
	 * 水质不达标
	 */
	public static final String UNSTANDARD = "不达标";

	/**
	 * CHLOROPHYLL:叶绿素
	 */
	public static final String CHLOROPHYLL = "w01016";

	/**
	 * 高锰酸钾
	 */
	public static final String PERMANGANATE = "w01019";

	/**
	 * 总氮
	 */
	public static final String TOTALNITROGEN = "w21001";

	/**
	 * 氨氮
	 */
	public static final String AMMONIA_NITROGEN = "w21003";

	/**
	 * chia:叶绿素湖泊营养指数
	 */
	public static final double chia = 1.0;

	/**
	 * TP:总磷湖泊营养指数
	 */
	public static final double TP = 0.7056;

	/**
	 * TN:总氮湖泊营养指数
	 */
	public static final double TN = 0.6724;

	/**
	 * SD:浊度湖泊营养指数
	 */
	public static final double SD = 0.6889;

	/**
	 * COD:高锰酸盐湖泊营养指数
	 */
	public static final double CODmn = 0.6889;

	/**
	 * 总磷
	 */
	public static final String TOTAL_PHOSPHORUS = "w21011";

	/**
	 * 浊度
	 */
	public static final String TURBIDITY = "w01003";

	/**
	 * 溶解氧
	 */
	public static final String DISSOLVED_OXYGEN = "w01009";

	/**
	 * 水温
	 */
	public static final String WATERTEMPERATURE = "w01010";

	/**
	 * 电导率
	 */
	public static final String CONDUCTIVITY = "w01014";

	/**
	 * ph值
	 */
	public static final String PH = "w01001";

	/**
	 * 系统类型
	 */
	public static final String SYSTEMTYPE = "21";

	/**
	 * 计算超标倍数
	 */
	public static final String EXCESS_MULTIPLE_T = "T";

	/**
	 * 不计算超标倍数
	 */
	public static final String EXCESS_MULTIPLE_F = "F";

	/**
	 * 备案
	 */
	public static final Integer FILING_TYPE = 0;

	/**
	 * 变更
	 */
	public static final Integer CHANGE_TYPE = 1;

	/**
	 * 空数据(报表使用)
	 */
	public static final String EMPTY_DATA = "--";

	// 水质九参
	public static final List<String> ninePollute = Arrays.asList(new String[] { WATERTEMPERATURE, PH, DISSOLVED_OXYGEN,
			CONDUCTIVITY, TURBIDITY, PERMANGANATE, TOTAL_PHOSPHORUS, TOTALNITROGEN, AMMONIA_NITROGEN });

	// 盲样
	public static final List<String> samplePollute = Arrays
			.asList(new String[] { PH, PERMANGANATE, TOTAL_PHOSPHORUS, TOTALNITROGEN, AMMONIA_NITROGEN });

	/**
	 * 五参
	 */
	public static final List<String> FIVE_POLLUTES = Arrays
			.asList(new String[] { TURBIDITY, DISSOLVED_OXYGEN, WATERTEMPERATURE, CONDUCTIVITY, PH });
	/**
	 * 五参超标
	 */
	public static final List<String> FIVE_OVER_POLLUTES = Arrays
			.asList(new String[] { TOTAL_PHOSPHORUS, AMMONIA_NITROGEN, PERMANGANATE, DISSOLVED_OXYGEN, PH });

	/**
	 * 常见因子（比如零点、跨度只有四个因子监测值）
	 */
	public static final List<String> FOUR_POLLUTES = Arrays
			.asList(new String[] { PERMANGANATE, TOTALNITROGEN, AMMONIA_NITROGEN, TOTAL_PHOSPHORUS });
	/**
	 * 四参数+溶解氧
	 */
	public static final List<String> FOUR_PLUS_OXYGEN_POLLUTES = Arrays
			.asList(new String[] { PERMANGANATE, TOTALNITROGEN, AMMONIA_NITROGEN, TOTAL_PHOSPHORUS, DISSOLVED_OXYGEN });

	/**
	 * 水质评价标准参数
	 */
	public static final List<String> STANDARD_POLLUTES = Arrays
			.asList(new String[] { PH, DISSOLVED_OXYGEN, PERMANGANATE, AMMONIA_NITROGEN, TOTAL_PHOSPHORUS });

	/**
	 * 周质控只考核四参
	 */
	public static final List<String> QC_FOUR_POLLUTES = Arrays
			.asList(new String[] { TURBIDITY, DISSOLVED_OXYGEN, CONDUCTIVITY, PH });

}
